package com.lj.mcore.service;

import com.lj.mcore.dao.base.BaseAppDAO;

import com.lj.mcore.entity.Area;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;
@Service
@Transactional
public class AreaService implements IAreaService{
    @Resource(name="areaDao")
    private BaseAppDAO<Area> areaDao;

    @Override
    public boolean save(Area obj) {
        return areaDao.save(obj);
    }

    @Override
    public boolean delete(Area obj) {
        return areaDao.delete(obj);
    }

    @Override
    public boolean update(Area obj) {
        return areaDao.update(obj);
    }

    @Override
    public Area getObjById(Long id) {
        return areaDao.findById(id);
    }

    @Override
    public List<Area> query(String hql, Map paramMap, int paramInt1, int paramInt2) {
        return areaDao.query(hql, paramMap, paramInt1, paramInt2);
    }
}
